---
title: 'Scene/Engine'
---

This is an easy hook to get confused!

```tsx
// will not work (always null)
const scene = useScene()

return (
  <Scene>
    <OtherComponent />
  </Scene>
)
```

```tsx
const OtherComponent = () => {
  // This does work!
  const scene = useScene();
  return ...;
}
```

<code src="./scene-engine/SceneEngine.tsx" />
